# $Id: PKGBUILD 78222 2012-10-17 10:25:44Z allan $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: giniu <gginiu@gmail.com>

pkgbase=python-foolscap
pkgname=python2-foolscap
pkgver=0.6.4
pkgrel=1
pkgdesc="RPC protocol for Python and Twisted"
license=('MIT')
url="http://foolscap.lothar.com/"
arch=(any)
depends=('twisted' 'python2' 'python2-pyopenssl')
makedepends=('python2-distribute')
conflicts=('python-foolscap<=0.6.3')
replaces=('python-foolscap<=0.6.3')
options=(!emptydirs)
source=(http://foolscap.lothar.com/releases/foolscap-${pkgver}.tar.gz{,.asc})
md5sums=('0aedae62a0be50da4f89d80b5b30c8a2'
         '45f74eb0b8038481cb04867b07f5efee')

package_python2-foolscap() {
  cd "$srcdir/foolscap-$pkgver"
  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
